-
Notifications
You must be signed in to change notification settings - Fork 1
initial version #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| import java.util.concurrent.atomic.AtomicReference; | ||
| import java.util.function.BiConsumer; | ||
|
|
||
| public class Entry { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class & variables could be final.
| import java.io.FileNotFoundException; | ||
| import java.util.Map; | ||
|
|
||
| public class InterpreterSettingsConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class&variables in getConfig could be final.
getConfig could be renamed to just config().
| } | ||
|
|
||
| final String propertieskey = "properties"; | ||
| if (!sparkObject.containsKey(propertieskey)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could make a separate validation object for these like in nlf_01. perhaps for another issue
| import java.util.concurrent.atomic.AtomicReference; | ||
| import java.util.function.BiConsumer; | ||
|
|
||
| public final class Entry { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps there could be a "DPLQuery" object that takes the query as a ctor argument and returns the result dataset. Then "Entry" could handle the arguments and initializing objects and printing the dataset to console/file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this differ from current?
final DPLExecutorResult executorResult = dplExecutor
.interpret(batchHandler, sparkSession, queryId, noteId, paragraphId, lines);
takes the query and the intialized objects and returns the result via the batchHandler. Entry is atm responsible for print and initialization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking it would pretty much contain the lines 90-118, and return the String that is currently updated with the AtomicReference. But in the end I suppose it doesn't differ all that much from the current implementation.
Description
Checklists
Testing
General
Assertions
Testing Data
Statements
Java
Other
Code Quality